<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<table border="1" cellpadding="0" cellspacing="0" width="800px">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>操作</td>
    </tr>
    <c:forEach var="stu" items="${list}" >
        <tr>
            <td>${stu.id}</td>
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>
                <a href="/toAddStudent">添加</a>&nbsp;
                <a href="/deleteStudent/${stu.id}" >删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="/toUpdateStudent?id=${stu.id}" >修改</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
